const TIME_OUT = 10000
const REQUEST_PREFIX = '/api'
const ApiHref = {}

let BASE_URL = ''

switch (process.env.VUE_APP_ENV) {
  case 'production':
    BASE_URL = ApiHref.prod
    break
  case 'test':
    BASE_URL = ApiHref.test
    break
  default:
    BASE_URL = ApiHref.test
}

BASE_URL = BASE_URL + REQUEST_PREFIX

export { BASE_URL, TIME_OUT }
